import {
  postlink,
  getlink
} from './request.js'

//活动列表
export function getHomeActivity(params) {
  return getlink('/nature-museum/api/activity/getHomeActivity/' + "16")
}

//根据分组ID获取活动列表
export function getActivityListByGroupId(params) {
  return getlink('/nature-museum/api/activity/getActivityListByGroupId/' + "16/"  + params)
}

//获取活动详情
export function getActivityDetail(params) {
  return getlink('/nature-museum/api/activity/getActivityDetail/' + params)
}

//保存或者修改观众信息
export function saveOrUpdateAudience(data) {
  return postlink('/nature-museum/api/activity/saveOrUpdateAudience', data)
}

//获取观众信息
export function getAudience(params) {
  return getlink('/nature-museum/api/activity/getAudience/' + "16")
}

//删除观众信息
export function delAudience(params) {
  return getlink('/nature-museum/api/activity/delAudience/' + params)
}

//校验身份证真假
export function verifyIdCard(params) {
  return getlink('/nature-museum/api/activity/verifyIdCard/' + params)
}

//下单预检查
export function preActivityOrder(data) {
  return postlink('/nature-museum/api/activity/preActivityOrder', data)
}


//微信支付
export function unifiedWxPayOrder(data) {
  return postlink('/nature-museum/api/wxPay/unifiedWxPayOrder', data)
}

//获取验证码
export function getCode(params) {
  return getlink('/nature-museum/api/h5-user/getCode/' + "16/" + params)
}

//用户登录
export function loginH5(params, data) {
  return getlink('/nature-museum/api/h5-user/loginH5/' + "16/" + params + "/" + data)
}

//检查登录状态
export function checkSession(params, data) {
  return getlink('/nature-museum/api/h5-user/checkSession')
}

//支付宝支付
export function payNow(data) {
  return postlink('/nature-museum/api/alipay/payNow', data)
}

//我的活动订单

// //专家说宝列表
// export function getAppCollectionVideoDTO(data) {
//   return postlink('/museum_culture/api/v1/collection-video/getAppCollectionVideoDTO', data)
// }
// //专家说宝详情
// export function getAppCollectionVideoDetail(params) {
//   return getlink('/museum_culture/api/v1/collection-video/getAppCollectionVideoDetail', params)
// }